<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta name="decorator" content="default" />
<base   target="_self"/>
</head>
<body>
<form:form name="listForm" action="" modelAttribute="supplier" method="post" class="form-inline" role="form">
         <div class="o-l-search-builder f_1">
    	<div id="statement-search-builder" class="collapse" style="height:auto;">
    		<div class="f_2">
                 <div class="form-group col-sm-6">
                      <label for="inputEmail3" class="col-sm-3 control-label f_4">供应商类型：</label>
                      <div class="col-sm-9 f_6">
                        <ossp:select dictType="supplierType" defaultSelected="${ supplier.supplierType}" name="supplierType" id="supplierType" class_="form-control"></ossp:select>
                      </div>
                  </div>
                  <div class="form-group col-sm-6">
                      <label for="inputEmail3" class="col-sm-3 control-label f_7">供应商编号：</label>
                      <div class="col-sm-9 f_6">
                         <form:input id="supplierNo" path="supplierNo"class="f_5" placeholder="供应商编号"/>
                      </div>
                  </div>
	         </div>
	      </div>
	         <div class="f_8">
	              <div class="f_2">
	                  <div class="col-sm-8 f_6">
	                        <form:input id="cname" path="cname"class="f_5" placeholder="供应商名称"/>
	                  </div>
	                  <button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
	             </div>
	         </div>
	         <div class="o-l-chevron-down"><a href="#" class="btn btn-default" data-toggle="collapse" data-target="#statement-search-builder" id="chevronDownBtn" role="button"><span id="glyphiconspan" class="glyphicon glyphicon-chevron-up"></span></a>
	         </div>
	     </div>
        <div class="o-l-search-builder f_9">
		<table class="table table-striped table-hover o-l-table" id="table1">
			<thead class="t_1">
				<tr>
					<th style="width: 1px"></th>
					<th>编号</th>
					<th>供应商名称</th>
					<th>类别</th>
					<th>状态</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${page.list}" var="item">
					<tr  data-herf="javascript:selectRow('${item.id}');" data-target="_self">
						<td class="o-l-tab-ckb" >
							<input type="radio" name="pk"  class="pk" id="${item.id}" data-ckb-id="${item.id}">
						</td>
						<td id="supplierNo">${item.supplierNo}</td>
						<td id="supplierName">${item.cname}</td>
						<td><ossp:value dictType="supplierType" key="${item.supplierType}"/></td>
						<td><ossp:value dictType="SUPPLIER_STATUTS" key="${item.supplierStatus}"/></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		</div>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>
		<div class="modal-footer">
	    <button type="button" onclick="templeteSelector_OK('supplier');"  class="btn btn-success btn_3">确认</button>
	        <button type="button" class="btn btn-danger btn_5" data-dismiss="modal" onclick="closeTempleteSelector();">取消</button>
	    </div>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>
<script type="text/javascript" src="${staticPath}/js/brand.js"></script>
</form:form>
</body>
</html>